//
//  HTTPRequestManager.m
//  ZhaoQiPei
//
//  Created by 找汽配ios开发 on 15/11/28.
//  Copyright © 2015年 祥运. All rights reserved.
//

#import "HTTPRequestManager.h"
#import "MBProgressHUD.h"

@interface HTTPRequestManager ()



@end

@implementation HTTPRequestManager

DEF_SINGLETON(HTTPRequestManager)

+ (MBProgressHUD *)showProgressHUD {
    HTTPRequestManager * manager = [self sharedInstance];
    if (manager.delegate && [manager.delegate respondsToSelector:@selector(httpRequestManagerShowProgressHUD)]) {
        return [manager.delegate httpRequestManagerShowProgressHUD];
    }
    else {
        return nil;
    }
}

+ (void)hideProgressHUD:(MBProgressHUD *)hud {
    HTTPRequestManager * manager = [self sharedInstance];
    if (manager.delegate && [manager.delegate respondsToSelector:@selector(httpRequestManagerHideProgressHUD:)]) {
        [manager.delegate httpRequestManagerHideProgressHUD:hud];
    }
}

@end
